package com.vhall.component.entity.rbac.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author dalong
 * @date 2021-05-13 10:33
 */
@Data
public class UserGetAccessListReqVO implements Serializable {

    private static final long serialVersionUID = -5165487499389008897L;
    @NotNull(message = "account_id不能为空")
    @ParamName(value = "account_id")
    private Integer accountId;

    @NotBlank(message = "app_id不能为空")
    @ParamName(value = "app_id")
    private String appId;

    @NotBlank(message = "role_name不能为空")
    @Pattern(regexp = "(1)|(2)|(3)|(4)", message = "role_name 只能是1,2,3,4")
    @ParamName(value = "role_name")
    private String roleName;

    private String from;

    @ParamName(value = "vss_token")
    private String vssToken;

    private String en;

}
